# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-2048
pkgver=0_git20221110
pkgrel=0
_commit="0edef01f4c2dd2cbd0bb66b888ca4b57fad297d1"
arch="all"
url="https://github.com/libretro/libretro-2048"
pkgdesc="port of 2048 puzzle game to the libretro API"
license="Unlicense"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/libretro-2048/archive/$_commit.tar.gz"
builddir="$srcdir/libretro-2048-$_commit"
options="!check" # No tests

build() {
	make -f Makefile.libretro
}

package() {
	install -Dm644 2048_libretro.so "$pkgdir"/usr/lib/libretro/2048_libretro.so
}

sha512sums="
031a479065b20f6632b1561abead2b2cfe0e185c3e1be5eccdd35b5a9f6cb2945254301121fa9eba26c50bc6743263063d8c54e9dfe23936d891f36622eb18e3  libretro-2048-0edef01f4c2dd2cbd0bb66b888ca4b57fad297d1.tar.gz
"
